<%@page import="dier.xuanke"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

         <title>用户选择页面</title>

</head>
</head>
<style type="text/css">
   div {
    margin: 0 660px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   
   .ys {
   Font-size:35px;
    color: red;
   }
 </style>
 
<body>
<div class="xx">
<%
				String StuID=request.getParameter("StuID");
				xuanke xk=new xuanke();
				int flag=xk.shanchuStu(StuID);
				if(flag==0)
				{
					%>
					<script type="text/javascript" >
     				alert("错误:删除失败。");         //弹出提示框输出错误信息
     				window.location='Stushanchu.jsp' ;     //跳转到登录界面
					</script>
					<%
				}
				else
				{%>
					<script type="text/javascript">
					alert("成功删除该学生信息。");
					window.location='Root.jsp' ;     //跳转到浏览界面
					</script><%
				}
%>
</div>
</body>
</html>